package com.cykj.admin.mapper;

import com.cykj.admin.vo.JobVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject:@BelonqsPackage:com.cykj.admin.mapper
 * @Author:jiangna
 * @CreateTime:2025-08-21 10:33
 */
@Mapper
public interface JobMapper {

    /**
    * @Description: 查询所有职位的信息/根据职位、类别、状态查询所有信息
    * @Param: [jobVO]
    * @return: java.util.List<com.cykj.admin.vo.JobVO>
    */
    List<JobVO> selectByJob(JobVO jobVO);

    /**
    * @Description: 修改职位信息
    * @Param: [jobVO]
    * @return: java.lang.Integer
    */
    Integer updateByJob(@Param("jobVO")JobVO jobVO);

    /**
    * @Description: 查询职位类型的id
    * @Param: [typeName]
    * @return: java.lang.Integer
    */
    Integer selectTypeIdByName(@Param("typeName") String typeName);

    Integer insertJobType(@Param("jobName")String jobName,@Param("jobInfo") String jobInfo , @Param("typeId") Integer typeId);

    Integer insertJobTypeName(@Param("jobVO")JobVO jobVO);

    /**
    * @Description: 拉黑该职位
    * @Param: [jobVO]
    * @return: java.lang.Integer
    */
    Integer deleteJob(@Param("jobVO")JobVO jobVO);
}
